package com.zjh.workflow.flowable.mapper;

import com.zjh.common.datasource.DataSource;
import com.zjh.workflow.flowable.entity.vo.TaskVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author : bruce.liu
 * @title: : IFlowableTaskDao
 * @projectName : flowable
 * @description: flowabletask的查询
 * @date : 2019/11/2316:34
 */
@Mapper
@DataSource("flowable2")
public interface IFlowableTaskMapper {
    /**
     * 查询待办任务
     */
    List<TaskVo> getApplyingTasks(String userId);

    /**
     * 查询已办任务列表
     *
     * @return
     */
    List<TaskVo> getApplyedTasks(String userId);

}
